package com.wawayaya.db.entitydao;


import com.wawayaya.bean.Notice;
import com.wawayaya.db.DBManager;
import com.wawayaya.db.basedao.NoticeDao;

public class NoticeEntityDao extends BaseEntityDao<NoticeDao, Notice, Long> {

	@Override
	protected NoticeDao initEntityDao() {
		return DBManager.newSession().getNoticeDao();
	}

	public void deleteEntityByKey(Long key) {
		getEntityDao().deleteByKey(key);
	}

	@Override
	public void replaceEntity(Notice entity) {
		getEntityDao().insertOrReplace(entity);
	}
}
